#!/bin/bash

# bundle script for Mac OS X

RESOURCES="/Users/Julien/Programmation/OTableau/OTableau.app/Contents/Resources"

cp ./etc/otableau.icns .
cp ./etc/setup-osx.py .

/usr/local/bin/python2.4 setup-osx.py py2app
#python setup-osx.py py2app


mv dist/OTableau.app .

cp gpl.txt $RESOURCES
cp release-notes.txt $RESOURCES
cp config $RESOURCES
cp OTableau-doc.pdf $RESOURCES
cp etc/Info.plist $RESOURCES
cp acknowledgements.txt $RESOURCES
# local copy
#cp -r $OSX/OTableau.app /Applications/

# clean out
rm -r build
rm -r dist
rm otableau.icns
rm setup-osx.py
rm *.pyc



